<?php

require_once 'spElement.php';

class spImage extends spElement
{
	public function __construct( $data=null )
	{
		parent::__construct( "img", $data );
		parent::addAttr( "alt", "" ); 			// required

		if ( isset($data["src"]) )
			parent::addAttr( "src", $data["src"] );
	}
}


?>